.class public Lcom/nbi/map/android/Pin;
.super Ljava/lang/Object;


# static fields
.field public static final PIN_BLUE:I = 0x4

.field public static final PIN_CUSTOM_IMAGE:I = 0xc

.field public static final PIN_DESTINATION_FLAG:I = 0x2

.field public static final PIN_DRAG:I = 0x8

.field public static final PIN_GREEN:I = 0x5

.field public static final PIN_INVALID_ID:I = -0x1

.field public static final PIN_ORANGE:I = 0x6

.field public static final PIN_RED:I = 0x3

.field public static final PIN_STANDARD_COUNT:I = 0xc

.field public static final PIN_STANDARD_MAX:I = 0x7

.field public static final PIN_STANDARD_MIN:I = 0x1

.field public static final PIN_START_FLAG:I = 0x1

.field public static final PIN_TRAFFIC_MAJOR:I = 0xa

.field public static final PIN_TRAFFIC_MINOR:I = 0x9

.field public static final PIN_TRAFFIC_SEVERE:I = 0xb

.field public static final PIN_YELLOW:I = 0x7


# instance fields
.field private lY:I

.field private lZ:Lcom/nbi/map/data/Place;

.field private ma:Lcom/nbi/map/android/PinImage;

.field private mb:Z

.field private mc:Ljava/lang/String;

.field private md:Ljava/lang/String;

.field private me:Ljava/lang/Object;


# direct methods
.method public constructor <init>(ILcom/nbi/map/data/Place;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput p1, p0, Lcom/nbi/map/android/Pin;->lY:I

    iput-object p2, p0, Lcom/nbi/map/android/Pin;->lZ:Lcom/nbi/map/data/Place;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nbi/map/android/Pin;->mb:Z

    return-void
.end method

.method public constructor <init>(ILcom/nbi/map/data/Place;Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput p1, p0, Lcom/nbi/map/android/Pin;->lY:I

    iput-object p2, p0, Lcom/nbi/map/android/Pin;->lZ:Lcom/nbi/map/data/Place;

    iput-object p3, p0, Lcom/nbi/map/android/Pin;->md:Ljava/lang/String;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nbi/map/android/Pin;->mb:Z

    return-void
.end method

.method public constructor <init>(ILcom/nbi/map/data/Place;Z)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput p1, p0, Lcom/nbi/map/android/Pin;->lY:I

    iput-object p2, p0, Lcom/nbi/map/android/Pin;->lZ:Lcom/nbi/map/data/Place;

    iput-boolean p3, p0, Lcom/nbi/map/android/Pin;->mb:Z

    return-void
.end method


# virtual methods
.method public getPinImage()Lcom/nbi/map/android/PinImage;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->ma:Lcom/nbi/map/android/PinImage;

    return-object v0
.end method

.method public getPinType()I
    .locals 1

    iget v0, p0, Lcom/nbi/map/android/Pin;->lY:I

    return v0
.end method

.method public getPlace()Lcom/nbi/map/data/Place;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->lZ:Lcom/nbi/map/data/Place;

    return-object v0
.end method

.method public getSubTitle()Ljava/lang/String;
    .locals 4

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->md:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->md:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_2

    :cond_0
    iget-object v0, p0, Lcom/nbi/map/android/Pin;->lZ:Lcom/nbi/map/data/Place;

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/MapLocation;->getAddress()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0}, Lcom/nbi/map/data/MapLocation;->getStreet()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " "

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_1
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_2
    iget-object v0, p0, Lcom/nbi/map/android/Pin;->md:Ljava/lang/String;

    goto :goto_0
.end method

.method public getTitle()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->mc:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->mc:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    invoke-virtual {p0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getName()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_1
    iget-object v0, p0, Lcom/nbi/map/android/Pin;->mc:Ljava/lang/String;

    goto :goto_0
.end method

.method public getUserData()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/android/Pin;->me:Ljava/lang/Object;

    return-object v0
.end method

.method public isDropPin()Z
    .locals 1

    iget-boolean v0, p0, Lcom/nbi/map/android/Pin;->mb:Z

    return v0
.end method

.method public setPinImage(Lcom/nbi/map/android/PinImage;)Z
    .locals 1

    iput-object p1, p0, Lcom/nbi/map/android/Pin;->ma:Lcom/nbi/map/android/PinImage;

    const/4 v0, 0x1

    return v0
.end method

.method public setPinType(I)V
    .locals 0

    iput p1, p0, Lcom/nbi/map/android/Pin;->lY:I

    return-void
.end method

.method public setPlace(Lcom/nbi/map/data/Place;)V
    .locals 0

    iput-object p1, p0, Lcom/nbi/map/android/Pin;->lZ:Lcom/nbi/map/data/Place;

    return-void
.end method

.method public setSubTitle(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/nbi/map/android/Pin;->md:Ljava/lang/String;

    return-void
.end method

.method public setTitle(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/nbi/map/android/Pin;->mc:Ljava/lang/String;

    return-void
.end method

.method public setUserData(Ljava/lang/Object;)V
    .locals 0

    iput-object p1, p0, Lcom/nbi/map/android/Pin;->me:Ljava/lang/Object;

    return-void
.end method
